<template>
  <div>
    <TypeNav></TypeNav>
    <List></List>
    <Recommend></Recommend>
    <Rank></Rank>
    <Like></Like>
    <Floor v-for="floor in floorList" :key="floor.id" :floor="floor"></Floor>
    <Brand></Brand>
   </div>
</template>

<script>
import {reqFloorList} from "@/api";
import Like from "@/pages/Home/components/Like";
import List from "@/pages/Home/components/List";
import Recommend from "@/pages/Home/components/Recommend";
import Rank from "@/pages/Home/components/Rank";
import Floor from "@/pages/Home/components/Floor";
import Brand from "@/pages/Home/components/Brand";
export default {
  name: "Home",
  components: {Brand, Floor, Rank, Recommend, List, Like},
  data(){
      return{
          floorList:[]
      }
  },
  mounted() {
      this.getFloorList()
  },
  methods:{
      async getFloorList(){
          const result = await reqFloorList()
          this.floorList = result
      }
  }
}
</script>

<style>

</style>